//
// Created by 高森森 on 2022/1/12.
//

#ifndef LEETCODE_SOLUTION2_H
#define LEETCODE_SOLUTION2_H

struct ListNode {
        int val;
       ListNode *next;
       ListNode() : val(0), next(nullptr) {}
         ListNode(int x) : val(x), next(nullptr) {}
         ListNode(int x, ListNode *next) : val(x), next(next) {}
     };
class Solution2 {
public:
    int getDecimalValue(ListNode* head) ;
};


#endif //LEETCODE_SOLUTION2_H
